package com.ls.thread.produce_consumer;

public class Produce implements Runnable {

	
	private Stroe stroe;
	
	
	public Produce(Stroe stroe) {
		super();
		this.stroe = stroe;
	}


	@SuppressWarnings("static-access")
	@Override
	public void run() {
		while(true){
//			System.out.println("生成者正在生产产品.............");
			
			stroe.addpro();
			try {
				Thread.currentThread().sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
		}
		
	}
	

}
